package com.training.action.xixiaoming;

import java.util.List;

import com.training.pojo.chengshu.MotorRoom;
import com.training.pojo.chengshu.UDept;
import com.training.pojo.chengshu.UUser;
import com.training.service.xixiaoming.deptService;
import com.training.service.xixiaoming.empService;
import com.training.service.xixiaoming.motorService;

public class editMotorAction {
	
	private String motorId;
	
	private motorService motorser;
	private deptService deptser;
	private empService empser;
	
	private MotorRoom motor;
	
	private List<UDept> deptlist;
	private List<UUser> emplist;
	
	public String execute() {
		System.out.println("editMotorAction");
		motor=motorser.getMotorById(Integer.parseInt(motorId));
		deptlist=deptser.getAllDept();
		emplist=empser.getAllEmp();
		return "success";
	}
	public String getMotorId() {
		return motorId;
	}
	public void setMotorId(String motorId) {
		this.motorId = motorId;
	}
	public motorService getMotorser() {
		return motorser;
	}
	public void setMotorser(motorService motorser) {
		this.motorser = motorser;
	}
	public MotorRoom getMotor() {
		return motor;
	}
	public void setMotor(MotorRoom motor) {
		this.motor = motor;
	}
	public deptService getDeptser() {
		return deptser;
	}
	public void setDeptser(deptService deptser) {
		this.deptser = deptser;
	}
	public empService getEmpser() {
		return empser;
	}
	public void setEmpser(empService empser) {
		this.empser = empser;
	}
	public List<UDept> getDeptlist() {
		return deptlist;
	}
	public void setDeptlist(List<UDept> deptlist) {
		this.deptlist = deptlist;
	}
	public List<UUser> getEmplist() {
		return emplist;
	}
	public void setEmplist(List<UUser> emplist) {
		this.emplist = emplist;
	}
	
}
